package com.koron.order.defect.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 水光孪生维修工单月数量
 */
@Data
public class SzlsDefectDto {

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    private String equipmentId;

    private String equipmentName;

    private Integer month;

    private Integer qty = 0;

    private List<String> statusList;

    public SzlsDefectDto() {
    }

    public SzlsDefectDto(String equipmentId, String equipmentName, Integer month, Integer qty) {
        this.equipmentId = equipmentId;
        this.equipmentName = equipmentName;
        this.month = month;
        this.qty = qty;
    }
}
